<?php
$r = bdd_query("SELECT user.name,c.text,c.date, user.id_user FROM user, comments c WHERE id_article=$id_article AND user.id_user = c.id_user ORDER BY id_comment ASC");
?>
<ul>
<?php
		while ($row = mysql_fetch_row($r))
			{
				$date = date('d/m/Y', strtotime($row[2]));
				$content = "<li><div class='box comment'>";
				$content .= "<div class='head'><p class='name'><a href='zone.php?id=$row[3]'>$row[0]</a></p>";
				$content .= "<p class='date'>$date</p></div><br/>";
				$content .= "<div class='content'>";
				$content .= $row[1];
				$content .= "</div></li>";
				echo $content;
			}
?>
</ul>
<div class="box add_comment">
	<form name="add_comment" method="post" action="create_comment.php" enctype="multipart/form-data">
		<textarea name="text" rows=2 cols=30></textarea>
		<input type="hidden" name="id" value="<?php echo $id_article; ?>"></input>
		<input type="submit" name="add" class="btn" value="Comment"></input>
	</form>
</div>